package demo1;

public class StringDemo6 {
    public static void main(String[] args) {
        String phoneNumber="18768388532";
        String start =  phoneNumber.substring(0,3);
        //System.out.println(start);
        String end =phoneNumber.substring(7);

      //  String result = start+"****"+end;
        String result = new StringBuilder().append(start).append("****").append(end).toString();
        System.out.println(result);
    }
}
